package com.hzw.saas.service.hpc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzw.saas.api.hpc.bo.HpcAccountIdProviderBo;
import com.hzw.saas.service.hpc.model.HpcAccountProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 用户超算中心帐号表 Mapper 接口
 * </p>
 *
 * @author sonam
 * @since 2021-03-22
 */
@Mapper
public interface HpcAccountProviderMapper extends BaseMapper<HpcAccountProvider> {

    HpcAccountProvider getByHpcAccountId(@Param("hpcAccountId") String hpcAccountId,
                                         @Param("hpcProviderType") String hpcProviderType);

    List<HpcAccountIdProviderBo> getByHpcAccountIds(@Param("hpcAccountIds") Collection<String> hpcAccountIds,
                                                    @Param("hpcProviderType") String hpcProviderType);
}
